package demoMod.stsconsole.relics;

import demoMod.stsconsole.core.AbstractCreature;
import demoMod.stsconsole.dungeons.AbstractDungeon;
import demoMod.stsconsole.interfaces.ChangeVulnerableMultiplierSubscriber;

public class OddMushroom extends AbstractRelic implements ChangeVulnerableMultiplierSubscriber {
    public static final String ID = "OddMushroom";

    public OddMushroom() {
        super(ID);
        this.rarity = RelicRarity.SPECIAL;
        this.color = RelicColor.SHARED;
    }

    @Override
    public String getUpdatedDescriptions() {
        return this.description;
    }

    @Override
    public float onChangeVulnerableMultiplier(AbstractCreature owner) {
        if (owner == AbstractDungeon.player) {
            return 0.833333F;
        }
        return 1.0F;
    }
}
